// 导入axios实例
import httpRequest from "../request/index";

// 根据id查询信息
export function apiLogin(param) {
  return httpRequest({
    url: "/api/login",
    method: "post",
    data: param,
  });
}
// 记录访客数量
export function apiAddVisitor(param) {
  return httpRequest({
    url: "/api/visitorsNumber",
    method: "get",
    params: param,
  });
}
//获取csrf
export function apiGetCsrf() {
  return httpRequest({
    url: "/api/getCsrf",
    method: "get",
  });
}
//获取访问量与数据量
export function apiGetStatistic() {
  return httpRequest({
    url: "/api/getStatistic",
    method: "get",
  });
}